<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditAluguerTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditAluguerLabel_idAluguer}" for="idAluguer" />
                    <h:inputText id="idAluguer" value="#{aluguerController.selected.idAluguer}" title="#{bundle.EditAluguerTitle_idAluguer}" required="true" requiredMessage="#{bundle.EditAluguerRequiredMessage_idAluguer}"/>
                    <h:outputLabel value="#{bundle.EditAluguerLabel_descricaoAluguer}" for="descricaoAluguer" />
                    <h:inputText id="descricaoAluguer" value="#{aluguerController.selected.descricaoAluguer}" title="#{bundle.EditAluguerTitle_descricaoAluguer}" required="true" requiredMessage="#{bundle.EditAluguerRequiredMessage_descricaoAluguer}"/>
                    <h:outputLabel value="#{bundle.EditAluguerLabel_fkCliente}" for="fkCliente" />
                    <h:selectOneMenu id="fkCliente" value="#{aluguerController.selected.fkCliente}" title="#{bundle.EditAluguerTitle_fkCliente}" required="true" requiredMessage="#{bundle.EditAluguerRequiredMessage_fkCliente}">
                        <f:selectItems value="#{clienteController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditAluguerLabel_dataEntrega}" for="dataEntrega" />
                    <h:inputText id="dataEntrega" value="#{aluguerController.selected.dataEntrega}" title="#{bundle.EditAluguerTitle_dataEntrega}" required="true" requiredMessage="#{bundle.EditAluguerRequiredMessage_dataEntrega}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.EditAluguerLabel_dataSaida}" for="dataSaida" />
                    <h:inputText id="dataSaida" value="#{aluguerController.selected.dataSaida}" title="#{bundle.EditAluguerTitle_dataSaida}" required="true" requiredMessage="#{bundle.EditAluguerRequiredMessage_dataSaida}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                </h:panelGrid>
                <h:commandLink action="#{aluguerController.update}" value="#{bundle.EditAluguerSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditAluguerViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{aluguerController.prepareList}" value="#{bundle.EditAluguerShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditAluguerIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
